import frappe
import frappe.core.report.database_storage_usage_by_tables.database_storage_usage_by_tables as storage_report
from frappe_dm.core.report.database_storage_usage_by_tables.database_storage_usage_by_tables import execute as dm_execute

def patch_reports():
    """为达梦数据库打补丁报表相关功能"""
    print("为达梦数据库打补丁报表相关功能...")
    patch_storage_report()

def patch_storage_report():
    """为达梦数据库打补丁存储使用情况报表"""
    print("为达梦数据库打补丁存储使用情况报表...")
    storage_report.execute = dm_execute
